import json
with open("data.json", "r", encoding="utf-8") as f:
    data = json.load(f)

data = data["children"]
ret = []
for d in data[:10]:
    children = d["children"]
    temp = []
    for child in children:
        title = child["sjmc"]
        content = child["sjms"]
        time = child["fssj"]
        keywords = child["keywords"]
        temp.append({"title": title, "content": content, "time": time, "keywords": keywords})
    ret.append(temp)
with open("processed.json", "w", encoding="utf-8") as f:
    json.dump(ret, f, ensure_ascii=False, indent=4)